/**
 * 项目名：化工企业安全生产信息化管理平台
 * 日期：    2020-03-01 21:14:37
 * Copyright (c) 2015- -版权所有
 */

package com.joysuch.wwyt.edu.bean;

import java.util.List;

import cn.zlg.common.springmvc.validate.constraints.NotNull;
import com.joysuch.wwyt.core.bean.BaseAttachmentBean;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

@Data
public class EduQuestionEditBean implements java.io.Serializable {

    // columns START

    // ID
    private Long id;

    // 名称
//    @Length(max = 256)
    @NotNull(field = "名称")
    private String name;

    private String code;
    // 题型
//    @Length(max = 10)
    @NotNull(field = "题型")
    private String type;

    // 试题类型
    @NotNull(field = "试题类型")
    private Long questionTypeId;

    // 创建人名称
    // @Length(max = 20)
    // private String createUserName;

    // 附件ID
    private BaseAttachmentBean attachment;

    // 试题内容
    @Length(max = 65535)
    private String content;

    // 试题答案
//    @Length(min = 1, max = 200)
    @NotNull(field = "答案")
    private String answer;

    private List<EduQuestionItemEditBean> items;

    // columns END

}
